/**
 * Class BhTarg
 *
 * Created by Hunter
 *
 * September 24, 2009
 */

package net.com.hydroPK;

public class BhTarg {
    /*  public static int whois;
    public static boolean hastarg = false;
    public static String targetname;
    public static List<Integer> Targs = new ArrayList<Integer>(200);
    public static List<Integer> Targs1 = new ArrayList<Integer>(200);
    public static List<Integer> Targs2 = new ArrayList<Integer>(200);
    public static List<Integer> Targs3 = new ArrayList<Integer>(200);
    public static List<Integer> Targs4 = new ArrayList<Integer>(200);
    public static List<Integer> Targs5 = new ArrayList<Integer>(200);
    Player p;

     public static int testGet(Player p) {
         Player p3 = Engine.players[p.bhTarget];
     System.out.println(Targs.size());
     if(Targs.size() == 0) {
         return 0;
     }
     int i = Misc.random(Targs.size());
     i--;
     if(i == -1) {
         i++;
     }
     if(Targs.get(i) == p.playerId) {
         for(int i2 = 0; i2 < Targs.size(); i2++) {
         if(Targs.get(i2) != p.playerId) {
             return Targs.get(i2);
         }
         }
     } else {
         return Targs.get(i);
     }
     return 0;
     }

     public static int testGet1(Player p) {
         Player p3 = Engine.players[p.bhTarget];
     System.out.println(Targs1.size());
     if(Targs1.size() == 0) {
         return 0;
     }
     int i = Misc.random(Targs1.size());
     i--;
     if(i == -1) {
         i++;
     }
     if(Targs1.get(i) == p.playerId) {
         for(int i2 = 0; i2 < Targs1.size(); i2++) {
         if(Targs.get(i2) != p.playerId) {
             return Targs1.get(i2);
         }
         }
     } else {
         return Targs1.get(i);
     }
     return 0;
     }
     public static int testGet2(Player p) {
         Player p3 = Engine.players[p.bhTarget];
     System.out.println(Targs2.size());
     if(Targs2.size() == 0) {
         return 0;
     }
     int i = Misc.random(Targs2.size());
     i--;
     if(i == -1) {
         i++;
     }
     if(Targs2.get(i) == p.playerId) {
         for(int i2 = 0; i2 < Targs2.size(); i2++) {
         if(Targs.get(i2) != p.playerId) {
             return Targs2.get(i2);
         }
         }
     } else {
         return Targs2.get(i);
     }
     return 0;
     }
     public static int testGet3(Player p) {
         Player p3 = Engine.players[p.bhTarget];
     System.out.println(Targs3.size());
     if(Targs3.size() == 0) {
         return 0;
     }
     int i = Misc.random(Targs3.size());
     i--;
     if(i == -1) {
         i++;
     }
     if(Targs3.get(i) == p.playerId) {
         for(int i2 = 0; i2 < Targs3.size(); i2++) {
         if(Targs3.get(i2) != p.playerId) {
             return Targs3.get(i2);
         }
         }
     } else {
         return Targs3.get(i);
     }
     return 0;
     }

     public static int testGet4(Player p) {
         Player p3 = Engine.players[p.bhTarget];
     System.out.println(Targs4.size());
     if(Targs4.size() == 0) {
         return 0;
     }
     int i = Misc.random(Targs4.size());
     i--;
     if(i == -1) {
         i++;
     }
     if(Targs4.get(i) == p.playerId) {
         for(int i2 = 0; i2 < Targs4.size(); i2++) {
         if(Targs4.get(i2) != p.playerId) {
             return Targs4.get(i2);
         }
         }
     } else {
         return Targs4.get(i);
     }
     return 0;
     }

     public static int testGet5(Player p) {
         Player p3 = Engine.players[p.bhTarget];
     System.out.println(Targs5.size());
     if(Targs5.size() == 0) {
         return 0;
     }
     int i = Misc.random(Targs5.size());
     i--;
     if(i == -1) {
         i++;
     }
     if(Targs5.get(i) == p.playerId) {
         for(int i2 = 0; i2 < Targs.size(); i2++) {
         if(Targs5.get(i2) != p.playerId) {
             return Targs5.get(i2);
         }
         }
     } else {
         return Targs5.get(i);
     }
     return 0;
     }



     public static void getTarget(Player p) {
       Player p3 = Engine.players[p.bhTarget];
     p.targetname = ""+p.whoiss+"";
     p.target = Misc.random(Targs.size());
     //p.targetname = ""+p.target+"";
     //whois = ;
     p.getActionSender().setHintIcon(p3, 10, 1, 40493, -1);
     hastarg = true;
     //p.getActionSender().sendMessage(p, "Your target is "+p3.username+".");
     }
     public static void getTarget1(Player p) {

     p.target = Misc.random(Targs1.size());
     Player p3 = Engine.players[p.target];
     p.getActionSender().setHintIcon(p3, 10, 1, 1, -1);
     hastarg = true;
     }
     public static void getTarget2(Player p) {

     p.target = Misc.random(Targs2.size());
     Player p3 = Engine.players[p.target];
     p.getActionSender().setHintIcon(p3, 10, 1, 1, -1);
     hastarg = true;
     }
     public static void getTarget3(Player p) {

     p.target = Misc.random(Targs3.size());
     Player p3 = Engine.players[p.target];
     p.getActionSender().setHintIcon(p3, 10, 1, 1, -1);
     hastarg = true;
     }
     public static void getTarget4(Player p) {

     p.target = Misc.random(Targs4.size());
     Player p3 = Engine.players[p.target];
     p.getActionSender().setHintIcon(p3, 10, 1, 1, -1);
     hastarg = true;
     }
     public static void getTarget5(Player p) {

     p.target = Misc.random(Targs5.size());
     Player p3 = Engine.players[p.target];
     p.getActionSender().setHintIcon(p3, 10, 1, 1, -1);
     hastarg = true;
     }*/
}